package net.aiion.weave.impl.routing;

import net.aiion.weave.spi.routing.Route;
import net.aiion.weave.spi.routing.RouteResult;

public class RouteResultImpl implements RouteResult
{
    private final Route route;
    private final Object result;

    public RouteResultImpl(final Route aRoute, final Object aResult) {
        route = aRoute;
        result = aResult;
    }

    @Override
    public Route getRoute() {
        return route;
    }

    @Override
    public Object getResult() {
        return result;
    }
}
